from django.contrib import admin
from django.urls import path, include
from django.shortcuts import render

urlpatterns = [
    path('', lambda request: render(request, r'Light-Year-Admin-Template-master\index.html'), name='home'),
    # 测试echarts
    path('echarts/', lambda request: render(request, r'test.html')),
    path('admin/', admin.site.urls),
    path('api/v1/', include('app001.urls')),  # 使用get/ 作路径  # 不符合restful规范
    path('api/v2/', include('app002.urls')),  # 继承view  # 基本符合restful规范
    path('api/v3/', include('app003.urls')),  # 继承APIView+Response  # 符合restful规范  # 使用序列化类返回数据
    path('api/v4/', include('app004.urls')),  # 使用 ModelSerializer
    path('api/v5/', include('app005.urls')),  # 混合的后台模板
]
